<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();


if(!empty($arResult["ERROR_MESSAGE"]))
{
    $APPLICATION->RestartBuffer();
    $res = array();

    $msg = '';
    foreach($arResult["ERROR_MESSAGE"] as $v){
        $msg = $v."<br>";
    }
    echo $msg;
    die;
}
if(strlen($arResult["OK_MESSAGE"]) > 0)
{
    $APPLICATION->RestartBuffer();

    die;
}
